<?php
class FirePHPComponent {
    private $instance;

    public function __construct () {
        if (!class_exists('FirePHP')) {
            return;
        }

        $ob_setting = ini_get('output_buffering');
        if (!$ob_setting) {
            ob_start();
        }
        $this->instance = FirePHP::getInstance(true);
        $this->instance->setEnabled(Configure::read('debug'));
    } // __construct

    public function __call ($name, $args) {
        return call_user_func_array(array($this->instance, $name), $args);
    } // __call
} // FirePHPComponent
?>